//
//  M_PlayNewsDetail.m
//  suRead
//
//  Created by 师爱华 on 17/2/28.
//  Copyright © 2017年 bao. All rights reserved.
//

#import "M_PlayNewsDetail.h"

@implementation M_PlayNewsDetail
+ (NSDictionary *)JSONKeyPathsByPropertyKey
{
    return @{
             @"f_id":@"id",
             @"f_catid":@"catid",
             @"f_title":@"title",
             @"f_thumb":@"thumb",
             @"f_description":@"description",
             @"f_content":@"content",
             @"f_url":@"url",
             @"f_status":@"status",
             @"f_btime_gid":@"btime_gid",
             @"f_orient_type":@"orient_type",
             @"f_live_type":@"live_type",
             @"f_rtmp":@"rtmp"
            };
}

+ (NSValueTransformer *)f_idJSONTransformer {
    return [MTLValueTransformer transformerUsingForwardBlock:^(NSNumber *value_, BOOL *success, NSError **error){
        if (!value_) {
            return @"";
        }
        return [NSString stringWithFormat:@"%@",value_];
    }];
}

+ (NSValueTransformer *)f_contentJSONTransformer {
    return [MTLValueTransformer transformerUsingForwardBlock:^(NSString *value_, BOOL *success, NSError **error){
        if (!value_) {
            return @"";
        }
        return [NSString stringWithFormat:@"%@",value_];
    }];
}

+ (NSValueTransformer *)f_rtmpJSONTransformer {
    return [MTLValueTransformer transformerUsingForwardBlock:^(NSString *value_, BOOL *success, NSError **error){
        if (!value_) {
            return @"";
        }
        return [NSString stringWithFormat:@"%@",value_];
    }];
}

@end
